package com.genius.reservation.guardPerson.service;

import com.genius.reservation.common.GlobalExceptionHandler.GlobalException;
import com.genius.reservation.common.ResponseRule;
import com.genius.reservation.driver.entity.DriverInformation;
import com.genius.reservation.guardPerson.entity.GuardPersonInformation;
import com.baomidou.mybatisplus.extension.service.IService;
import com.genius.reservation.user.entity.UserInformation;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p>
 * 警卫人员表 服务类
 * </p>
 *
 * @author baomidou
 * @since 2022-05-26
 */
public interface IGuardPersonInformationService extends IService<GuardPersonInformation> {

    default GuardPersonInformation saAndUp(GuardPersonInformation o){
        this.saveOrUpdate(o);
        return o;
    }
    GuardPersonInformation createGuarder(UserInformation user);

//    ResponseRule arrive(String reservationNumber);

    ResponseRule findCar(String carCode );

}
